<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<!-- Mirrored from centaurus.adbee.technology/form-wysiwyg.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 02 Aug 2014 05:38:10 GMT -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>맛집 세상 관리자</title>
<script type="text/javascript" src="js/html_editor.js"></script>
<link rel="stylesheet" type="text/css" href="css/mytypeBoardAdmin.css"/>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
function deleteForm(num) {
	if(confirm("삭제하시겠습니까?")){
	frm.method="POST";
	frm.action = "<%=request.getContextPath()%>/noticeDelete.do?num="+num;
	frm.submit();
	}
}
</script>
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:1406277561,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dokv=88e434a982/"},atok:"c7408377f8f729eb5c451d460f3aaf80",petok:"92221131326dc1d45c94722c1eaf464568e686f4-1406957800-1800",zone:"adbee.technology",rocket:"0",apps:{"ga_key":{"ua":"UA-49262924-2","ga_bs":"2"}}}];!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="../ajax.cloudflare.com/cdn-cgi/nexp/dokv%3d97fb4d042e/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){};
//]]>
</script>
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />

<link href="css/libs/font-awesome.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="css/libs/nanoscroller.css" type="text/css" />

<link rel="stylesheet" type="text/css" href="css/compiled/layout.css">
<link rel="stylesheet" type="text/css" href="css/compiled/elements.css">


<link type="image/x-icon" href="favicon.png" rel="shortcut icon" />

<link
	href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400'
	rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
		<script src="js/html5shiv.js"></script>
		<script src="js/respond.min.js"></script>
	<![endif]-->
<script type="text/javascript">
/* <![CDATA[ */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-49262924-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

(function(b){(function(a){"__CF"in b&&"DJS"in b.__CF?b.__CF.DJS.push(a):"addEventListener"in b?b.addEventListener("load",a,!1):b.attachEvent("onload",a)})(function(){"FB"in b&&"Event"in FB&&"subscribe"in FB.Event&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}));"twttr"in b&&"events"in twttr&&"bind"in twttr.events&&twttr.events.bind("tweet",function(a){if(a){var b;if(a.target&&a.target.nodeName=="IFRAME")a:{if(a=a.target.src){a=a.split("#")[0].match(/[^?=&]+=([^&]*)?/g);b=0;for(var c;c=a[b];++b)if(c.indexOf("url")===0){b=unescape(c.split("=")[1]);break a}}b=void 0}_gaq.push(["_trackSocial","twitter","tweet",b])}})})})(window);
/* ]]> */
</script>
</head>
<body>
	<%-- 상 단 --%>
	<jsp:include page="../include/top.jsp"></jsp:include>
	<%-- 상 단 끝 --%>
	<div id="content-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<div class="row">
					<div class="col-lg-12">
						<ol class="breadcrumb">
							<li><a href="#">Home</a></li>
							<li class="active"><span>Notice</span></li>
						</ol>
						<h1>공지사항 글 읽기</h1>
					</div>
				</div>
				<form name="frm">
				<input type="hidden" name="num" value="${notice.num}">
				<div class="row">
					<div class="col-lg-12">
						<table style="border: 0px; border-collapse: 0px; border-spacing: 0px; margin: 0 auto; width: 98%;">
				<tr><td height="1" class="TitleLine"></td></tr>
				<tr>
				<td>
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody>
					<tr>
						<td height="10" colspan="2"></td>
					</tr> 
						<tr>
							<td colspan="2" valign="top">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">
									<tbody>
										<tr><td width="10px" nowrap="nowrap" class="titleBG"></td>
											<td width="100%" class="titleBG" valign="top">
											<table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody>
											<tr>
												<td height="35" style='word-break:break-all;' >
													<span class="boardTitle">${notice.subject}</span>
												</td>
												<td align="right" width="100px" nowrap="nowrap">
												<fmt:formatDate value="${notice.regdate}" pattern="yyyy-MM-dd" />
												</td>
												
											</tr>
										</tbody>
											</table>
											</td>
											<td width="10px" nowrap="nowrap" class="titleBG"></td>
										</tr>
								</tbody>
							</table>
						</td>
					</tr>
							
						<tr>
							<td colspan="2" height="6"></td>
						</tr>
						<tr>
							<td colspan="2" valign="top" style="padding-left:10px;">
							<font color="black"><b>${notice.name}</b></font>
						<b>Hit : ${notice.hit}</b></font>
						</td>
						</tr>
							<tr>
								<td height="1" colspan="2" class="DivideLine"></td>
							</tr>
						<tr>
							<td colspan="2" height="6"></td>
						</tr>
						<tr>
							<td colspan="2" style="background-image: url('<%=request.getContextPath()%>/images/board/dotLine.gif');" height="1"></td>
						</tr>
						<tr>
							<td colspan="2" height="14"></td>
						</tr> 
						
						<tr align="center">
<td style="padding: 15px 10px 0px 10px; text-align: center;"  colspan="2" class="view"  >
<xmp>${notice.contents}</xmp>
</td>
					    </tr>
						    <tr>
								<td height="10" colspan="2"></td>
							</tr>
							<tr>
								<td height="1" colspan="2" class="DivideLine"></td>
							</tr>
							<tr>
								<td height="10" colspan="2"></td>
							</tr>
				
				<tr align="right">
				<td>
					<button type="button" class="btn btn-success">글쓰기</button>
					<button type="button" class="btn btn-warning" onclick="document.location.href='noticeUpdate.do'">수 정</button>
					<button type="button" class="btn btn-danger" onclick="deleteForm(${notice.num})">삭 제 </button>
					<button type="button" class="btn btn-primary" onclick="">목 록</button>
				</td>
				</tr>
			</tbody>
		</table>
	</td>
</tr>
					<tr>
						<td height="10"></td>
					</tr>
</table>

					</div>

				</div>
			</form>
			</div>
		</div>
		<%-- 하단 --%>
		<jsp:include page="../include/bottom.jsp"></jsp:include>
		<%-- 하단 끝 --%>
	</div>
	</div>
	</div>

	<script src="js/demo-skin-changer.js"></script>
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.js"></script>
	<script src="js/jquery.nanoscroller.min.js"></script>
	<script src="js/demo.js"></script>

	<script src="js/jquery.hotkeys.js"></script>
	<script src="js/bootstrap-wysiwyg.js"></script>

	<script src="js/scripts.js"></script>

	<script>
	$(function(){
		function initToolbarBootstrapBindings() {
			var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier', 
						'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
						'Times New Roman', 'Verdana'],
				fontTarget = $('[title=Font]').siblings('.dropdown-menu');
			
			$.each(fonts, function (idx, fontName) {
				fontTarget.append($('<li><a data-edit="fontName ' + fontName +'" style="font-family:\''+ fontName +'\'">'+fontName + '</a></li>'));
			});
			$('a[title]').tooltip({container:'body'});
			$('.dropdown-menu input').click(function() {return false;})
				.change(function () {$(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle');})
				.keydown('esc', function () {this.value='';$(this).change();});

			$('[data-role=magic-overlay]').each(function () { 
				var overlay = $(this), target = $(overlay.data('target')); 
				overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
			});
			if ("onwebkitspeechchange"	in document.createElement("input")) {
				var editorOffset = $('#editor').offset();
				$('#voiceBtn').css('position','absolute').offset({top: editorOffset.top, left: editorOffset.left+$('#editor').innerWidth()-35});
			} else {
				$('#voiceBtn').hide();
			}
		};
		function showErrorAlert (reason, detail) {
			var msg='';
			if (reason==='unsupported-file-type') { msg = "Unsupported format " +detail; }
			else {
				console.log("error uploading file", reason, detail);
			}
			$('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button>'+ 
			 '<strong>File upload error</strong> '+msg+' </div>').prependTo('#alerts');
		};
			initToolbarBootstrapBindings();	
		$('#editor').wysiwyg({ fileUploadError: showErrorAlert} );
	});
	</script>
</body>
</html>